Trees | Indices | Help |
|
---|
|
This library can be used to retrieve network and TCP information, such as getting the Operating system name, checking if a MAC Address is valid, check if an IP Address is valid etc.
|
|||
ProtocolType | |||
_PortType Identify port type in application layer of OSI |
|||
_PortTypeEnum | |||
Endpoint | |||
ConnectivityEndpoint | |||
BaseEndpointBuilder Base builder for endpoint as we have two types: URI and IP service endpoint |
|||
UriEndpointBuilder | |||
ServiceEndpointBuilder | |||
EndpointReporter | |||
DNSResolver Class responsible for getting nslookup results on a client's machine |
|||
IpResolver Class responsible for resolving IP addresses on probe machine's side |
|||
ResolveException Base exception class used for DNS resolving |
|||
BaseDnsResolver Base class for DNS resolvers |
|||
FallbackResolver Implementation of DNS resolving using fallback approach against different resolvers |
|||
DnsResolverByShell | |||
JavaDnsResolver DNS Resolver that uses java API - InetAddress |
|||
__IPProtocols | |||
__DomainScopeManager |
|
|||
string |
|
||
string |
|
||
Boolean |
|
||
string |
|
||
string |
|
||
integer |
|
||
string |
|
||
string |
|
||
int |
|
||
int |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
integer |
|
||
integer |
|
||
string |
|
||
string |
|
||
integer |
|
||
str |
|
||
integer |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
_IGNORED_INTERFACE_MACS = "204153594EFF", "33506F453030", "505
|
|||
_IGNORED_INTERFACE_MAC_PATTERNS = '^0{6}', '0{6}$', 'F{12}', '
|
|||
PortTypeEnum = _PortTypeEnum(HTTP= _PortType('http'), HTTPS= _
|
|||
WINDOWS_HOSTS_CONFIG = '%SystemRoot%\system32\drivers\etc\hosts'
|
|||
UNIX_HOSTS_CONFIG = '/etc/hosts'
|
|||
IPPROTOCOLS = __IPProtocols(JIPProtocols)
|
|||
DOMAIN_SCOPE_MANAGER = __DomainScopeManager(JDomainScopeManager)
|
|
Resolves the host name to the IP Address in DNS table. On failure to resolve the name, the default value parameter is returned.
|
Resolves the IP address to the host name in the DNS table. On failure to resolve the address the , default value parameter is returned.
|
Checks whether the given IP address is valid.
|
Converts chars in given string from hex codes to ascii symbols e.g. '4A415641' -> 'JAVA'
Note: Don't be frustrated by the name of function! '4A415641' - is ascii codes; returned value 'JAVA' - is a hex string |
Parses the given macAddress and converts it to the system format XXXXXXXXXXXX, where X is an uppercase hexadecimal digit.
|
Checks whether the specified MAC address is valid.
|
Parses the supplied network mask into the common format of %d.%d.%d.%d
|
Retrieves the operating system name.
|
Checks whether the specified IP is loopback (assumes the given IP is *valid*). Loopback IPs are any IP which starts with '127.'
|
Checks whether the specified IP is local (assumes the given IP is *valid*). Local IPs are any IP which starts with '127.' or '0.'
|
Checks is the specified IP belongs to private network (assumes the given IP is *valid*). Private IP addresses described in RFC 1918 (Private Address Space section) They are: 10.0.0.0 - 10.255.255.255 (10/8 prefix) 172.16.0.0 - 172.31.255.255 (172.16/12 prefix) 192.168.0.0 - 192.168.255.255 (192.168/16 prefix) @param ip: IP address to check @type ip: String @return: 1 if the IP belongs to private network, else 0 @rtype: int |
Resolves fqdn of a host by ip. NsLookup is used first and then @netutils.getHostName used on fallback Shell, ip -> str or None |
Performs HTTP(S) Connection to the specified URL Returns data according to the requestedData flag: 'body': Full Response Body as String 'header': Returns the response header with the specified headerName |
Checks the TCP connection to the given ipAddress on the given port.
|
Ping the specified device
|
Checks whether the given IP is a broadcast IP
|
Checks whether the given IP is anycast Anycast is a network addressing and routing scheme whereby data is routed to the "nearest" or "best" destination as viewed by the routing topology Can be obtained in following way: non-local IP on loop-back interface
|
Return port name for the given port number and type.
|
Return PyConnection to the database (see Jython's zxJDBC description)
|
Returns the count of 1 in binary representation of given number
|
Returns the count of set bit in given network mask e.g. for mask '255.255.255.0' return value will be 24
|
Precondition: IpV6 is not supported Decode routing prefix to IpV4 (dotDecimal) mask or IpV6 mask |
Precondition: only IPv4 is supported Obtain subnet mask from cidr notation. |
Transforms IP address from string representation to numeric
|
Getting minimal IP from list of IPs
Note: if list of local IPs passed return the latest one |
Basing on integer representation of network mask returns MAXIMAL count of IPs which can be addressed in given network
See Also: convertIpToInt |
|
_IGNORED_INTERFACE_MACS
|
_IGNORED_INTERFACE_MAC_PATTERNS
|
PortTypeEnum
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Nov 15 16:25:21 2012 | http://epydoc.sourceforge.net |